package com.hospital.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("drugPurchaseItem")
public class DrugPurchaseItem {
    @TableId(value = "itemId", type = IdType.AUTO)
    private Integer itemId;
    private Integer purchaseId;   // 关联申请ID
    private Integer drugId;       // 药品ID
    private Integer quantity;     // 数量
    private BigDecimal unitPrice; // 申请时单价快照
    private BigDecimal amount;    // 小计
}

